﻿using System;

namespace FindMaxByThreeIntegers
{
    class FindMaxByThreeIntegers
    {
        static void Main(string[] args)
        {
            //Write a program that finds the biggest of three integers using nested if statements.
            Console.WriteLine("First:");
            int firstNumber = int.Parse(Console.ReadLine());
            Console.WriteLine("Second:");
            int secondNumber = int.Parse(Console.ReadLine());
            Console.WriteLine("Third:");
            int thirdNumber = int.Parse(Console.ReadLine());
            Console.WriteLine();
            if (firstNumber>=secondNumber)
            {
                if (firstNumber>thirdNumber)
                {
                    Console.WriteLine("Biggest is: {0}",firstNumber);
                }
                else if(firstNumber==thirdNumber)
                {
                    Console.WriteLine("They are equal.");
                }
            }
            if (secondNumber >= firstNumber)
            {
                if (secondNumber > thirdNumber)
                {
                    Console.WriteLine("Biggest is: {0}", secondNumber);
                }
            }
            if (thirdNumber >= firstNumber)
            {
                if (thirdNumber>secondNumber)
                {
                    Console.WriteLine("Biggest is: {0}", thirdNumber);
                }
            }
        }
    }
}
